﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNHibernate.Mapping;

namespace Barry.BarbeSystem.Models
{
    public class Discount
    {
        
        public virtual int Id {protected set; get; }

        public virtual decimal DiscountInfo { set; get; }
    }

    public class DiscountModelMap:ClassMap<Discount>
    {
        public DiscountModelMap()
        {
            Id(x => x.Id);
            Map(x => x.DiscountInfo).Precision(4).Scale(2).Not.Nullable();
        }
    }
}